package com.ruoyi.huoyun.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 货源信息对象 supply_of_goods_info
 *
 * @author mj
 * @date 2021-11-29
 */
public class SupplyOfGoodsInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一标识数据表 */
    private Long id;

    /** 出发地点 */
    @Excel(name = "出发地点")
    private String startAddress;

    /** 到达地点 */
    @Excel(name = "到达地点")
    private String endAddress;

    /** 货运内容 */
    @Excel(name = "货物名称")
    private String goodsInfo;

    /** 运费 */
    @Excel(name = "运费")
    private BigDecimal transportCost;

    /** 是否推荐（0否 1是） */
    @Excel(name = "是否推荐", readConverterExp = "0=否,1=是")
    private String isRecommend;

    /** 装货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "装货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loadTime;

    /** 车型 */
    @Excel(name = "车型")
    private BigDecimal carStyle;

    /** 车长 */
    @Excel(name = "车长")
    private BigDecimal carLength;

    /** 载重 */
    @Excel(name = "载重")
    private BigDecimal loadCapacity;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String contact;

    /** 备注 */
    @Excel(name = "备注")
    private String comment;

    /** 车重 */
    @Excel(name = "车重")
    private BigDecimal carWeight;

    /** 车的体积 */
    @Excel(name = "车的体积")
    private BigDecimal carVolume;

    /** 货物预计送达时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "货物预计送达时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expectedTime;

    /** 货物体积 */
    @Excel(name = "货物体积")
    private BigDecimal goodsVolume;

    /** 货物重量 */
    @Excel(name = "货物重量")
    private BigDecimal goodsWeight;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setStartAddress(String startAddress)
    {
        this.startAddress = startAddress;
    }

    public String getStartAddress()
    {
        return startAddress;
    }
    public void setEndAddress(String endAddress)
    {
        this.endAddress = endAddress;
    }

    public String getEndAddress()
    {
        return endAddress;
    }
    public void setGoodsInfo(String goodsInfo)
    {
        this.goodsInfo = goodsInfo;
    }

    public String getGoodsInfo()
    {
        return goodsInfo;
    }
    public void setTransportCost(BigDecimal transportCost)
    {
        this.transportCost = transportCost;
    }

    public BigDecimal getTransportCost()
    {
        return transportCost;
    }
    public void setIsRecommend(String isRecommend)
    {
        this.isRecommend = isRecommend;
    }

    public String getIsRecommend()
    {
        return isRecommend;
    }
    public void setLoadTime(Date loadTime)
    {
        this.loadTime = loadTime;
    }

    public Date getLoadTime()
    {
        return loadTime;
    }
    public void setCarStyle(BigDecimal carStyle)
    {
        this.carStyle = carStyle;
    }

    public BigDecimal getCarStyle()
    {
        return carStyle;
    }
    public void setCarLength(BigDecimal carLength)
    {
        this.carLength = carLength;
    }

    public BigDecimal getCarLength()
    {
        return carLength;
    }
    public void setLoadCapacity(BigDecimal loadCapacity)
    {
        this.loadCapacity = loadCapacity;
    }

    public BigDecimal getLoadCapacity()
    {
        return loadCapacity;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setContact(String contact)
    {
        this.contact = contact;
    }

    public String getContact()
    {
        return contact;
    }
    public void setComment(String comment)
    {
        this.comment = comment;
    }

    public String getComment()
    {
        return comment;
    }
    public void setCarWeight(BigDecimal carWeight)
    {
        this.carWeight = carWeight;
    }

    public BigDecimal getCarWeight()
    {
        return carWeight;
    }
    public void setCarVolume(BigDecimal carVolume)
    {
        this.carVolume = carVolume;
    }

    public BigDecimal getCarVolume()
    {
        return carVolume;
    }
    public void setExpectedTime(Date expectedTime)
    {
        this.expectedTime = expectedTime;
    }

    public Date getExpectedTime()
    {
        return expectedTime;
    }
    public void setGoodsVolume(BigDecimal goodsVolume)
    {
        this.goodsVolume = goodsVolume;
    }

    public BigDecimal getGoodsVolume()
    {
        return goodsVolume;
    }
    public void setGoodsWeight(BigDecimal goodsWeight)
    {
        this.goodsWeight = goodsWeight;
    }

    public BigDecimal getGoodsWeight()
    {
        return goodsWeight;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("startAddress", getStartAddress())
            .append("endAddress", getEndAddress())
            .append("goodsInfo", getGoodsInfo())
            .append("transportCost", getTransportCost())
            .append("isRecommend", getIsRecommend())
            .append("loadTime", getLoadTime())
            .append("carStyle", getCarStyle())
            .append("carLength", getCarLength())
            .append("loadCapacity", getLoadCapacity())
            .append("name", getName())
            .append("contact", getContact())
            .append("comment", getComment())
            .append("carWeight", getCarWeight())
            .append("carVolume", getCarVolume())
            .append("expectedTime", getExpectedTime())
            .append("goodsVolume", getGoodsVolume())
            .append("goodsWeight", getGoodsWeight())
            .append("status", getStatus())
            .toString();
    }
}
